# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nemo-qml-plugin-systemsettings
pkgver=0.5.82
pkgrel=0
pkgdesc="Nemo QML systemsettings plugin"
url="https://github.com/sailfishos/nemo-qml-plugin-systemsettings"
arch="all !armhf" # missing dependencies
license="BSD-3-Clause"
depends_dev="
	libusb-moded-qt-dev
	mce-dev
	mlite-dev
	nemo-qml-plugin-dbus-dev
	qt5-qtdeclarative-dev
	qt5-qtsystems-dev
	sailfish-access-control
	ssu-sysinfo-dev
	timed-dev
	user-managerd-dev
	"
makedepends="$depends_dev
	libconnman-qt-dev
	libsailfishkeyprovider-dev
	nemo-qml-plugin-models-dev
	profiled-dev
	qt5-qtbase-dev
	qt5-qttools-dev
	qt5-qtxmlpatterns-dev
	qtchooser
	"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/sailfishos/nemo-qml-plugin-systemsettings/archive/$pkgver.tar.gz
	0001-Remove-developer-mode.patch
	0002-Remove-packagekit-usage.patch
	0003-Include-linux-quota.h.patch
	"

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove installed tests
	rm -r "$pkgdir"/opt
}

sha512sums="
566e4556f13a3b8ca3da3bcbd9fcef2354f5f2d854feb161f0bbfea683d651c6faf36c41ed43c4f246ba6e96d48c1f1e24551f111a896b21453c01b4753f7d8f  nemo-qml-plugin-systemsettings-0.5.82.tar.gz
4a34709e3a3fa14e53a79d767d5bd442aecdda8c67f54d6a6546fa792385043c1aaf3cf3f68ef6bc099cb354bb1503d3653ed974d5a9db7ab7e62591916ee933  0001-Remove-developer-mode.patch
e00c3d0ccaf9ceffbd4006c008bbd71c286998590640830c0f8997e0f292f40bc5837b57070701170198a645b756cfb87e74cc570b8554aba6f7c1ade5276a2a  0002-Remove-packagekit-usage.patch
561741fb4f83656ac5d26e979033991347280e6e90f0ef0dc043318fdaf62f136673039dfac1b1af2bf94322f761525725d43aa2d345b7a8599d992f150800ae  0003-Include-linux-quota.h.patch
"
